package pojo;


public class Book {

  private Integer bookId;  // 数据库的字段 book_id  ->pojo 的属性 是  驼峰命名
  private String bookIsbn;
  private String bookName;
  private String bookAuthor;
  private String bookPub;
  private long   bookSort;  //分类id
  private String bookAbstract;
  private long   bookTotal;
  private String bookPhoto;
  private String bookPubLocation;
  private String bookPubYear;

  public Book() {

  }

  public Book(String bookIsbn, String bookName, String bookAuthor, String bookPub, long bookSort, long bookTotal, String bookPubLocation, String bookPubYear) {
    this.bookIsbn = bookIsbn;
    this.bookName = bookName;
    this.bookAuthor = bookAuthor;
    this.bookPub = bookPub;
    this.bookSort = bookSort;
    this.bookTotal = bookTotal;
    this.bookPubLocation = bookPubLocation;
    this.bookPubYear = bookPubYear;
  }

  public Integer getBookId() {
    return bookId;
  }

  public void setBookId(Integer bookId) {
    this.bookId = bookId;
  }


  public String getBookIsbn() {
    return bookIsbn;
  }

  public void setBookIsbn(String bookIsbn) {
    this.bookIsbn = bookIsbn;
  }


  public String getBookName() {
    return bookName;
  }

  public void setBookName(String bookName) {
    this.bookName = bookName;
  }


  public String getBookAuthor() {
    return bookAuthor;
  }

  public void setBookAuthor(String bookAuthor) {
    this.bookAuthor = bookAuthor;
  }


  public String getBookPub() {
    return bookPub;
  }

  public void setBookPub(String bookPub) {
    this.bookPub = bookPub;
  }


  public long getBookSort() {
    return bookSort;
  }

  public void setBookSort(long bookSort) {
    this.bookSort = bookSort;
  }


  public String getBookAbstract() {
    return bookAbstract;
  }

  public void setBookAbstract(String bookAbstract) {
    this.bookAbstract = bookAbstract;
  }


  public long getBookTotal() {
    return bookTotal;
  }

  public void setBookTotal(long bookTotal) {
    this.bookTotal = bookTotal;
  }


  public String getBookPhoto() {
    return bookPhoto;
  }

  public void setBookPhoto(String bookPhoto) {
    this.bookPhoto = bookPhoto;
  }


  public String getBookPubLocation() {
    return bookPubLocation;
  }

  public void setBookPubLocation(String bookPubLocation) {
    this.bookPubLocation = bookPubLocation;
  }


  public String getBookPubYear() {
    return bookPubYear;
  }

  public void setBookPubYear(String bookPubYear) {
    this.bookPubYear = bookPubYear;
  }

  @Override
  public String toString() {
    return "Book{" +
            "bookId=" + bookId +
            ", bookIsbn='" + bookIsbn + '\'' +
            ", bookName='" + bookName + '\'' +
            ", bookAuthor='" + bookAuthor + '\'' +
            ", bookPub='" + bookPub + '\'' +
            ", bookSort=" + bookSort +
            ", bookAbstract='" + bookAbstract + '\'' +
            ", bookTotal=" + bookTotal +
            ", bookPhoto='" + bookPhoto + '\'' +
            ", bookPubLocation='" + bookPubLocation + '\'' +
            ", bookPubYear='" + bookPubYear + '\'' +
            '}';
  }
}
